<section class="main-content">
    <div class="main-content__inner">
        <div class="main-content__right">  
            <?php $this->widget('widgets.Content.ArticleMenu'); ?>
        </div>
        <div class="main-content__left">
            <h1 class="global-small-title">Акции</h1>
            <ul class="shares">
                <?php foreach ($models as $model): ?>
                    <li>
                        <div class="shares__item">
                            <div class="shares__photo">
                                <a href="/<?php echo $model['page_url']; ?>">
                                    <img alt="news-photo" src="<?php
                                    $src = file_exists(Yii::app()->basePath . '/../images/articles/' . $model['page_image']) ? Yii::app()->request->baseUrl . '/images/articles/' . $model['page_image'] : Yii::app()->request->baseUrl . '/images/articles/no_photo.jpg';
                                    echo $src;
                                    ?>">
                                </a>
                            </div>
                            <div class="shares__description">
                                <h2>
                                    <a href="/<?php echo $model['page_url']; ?>"><?php echo $model['page_title']; ?></a>
                                </h2>
                                <p><?php echo $model['page_short_content']; ?></p>
                            </div>  
                        </div>                        
                    </li>
                <?php endforeach; ?>
            </ul>
            <nav class="page-navi">
                <?php
                $this->widget('CLinkPager', array(
                    'pages' => $pages,
                    'header' => '',
                    'cssFile' => Yii::app()->request->baseUrl . '/css/pager.css',
                    'firstPageLabel' => '',
                    'prevPageLabel' => '<span class="hide">previous</span>',
                    'nextPageLabel' => '<span class="hide">next</span>',
                    'lastPageLabel' => '',
                ));
                ?>
            </nav>

        </div>  
    </div>   
</section>